package com.mark.enums;

import lombok.Getter;

/**
 * Created by Choisaaaa on 2018/6/21.
 * http请求返回结果自定义状态
 */
@Getter
public enum ResponseCodeEnum {
    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    SELLER_NEED_LOGIN(11,"NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT"),
    Exception(-1,"Exception");

    private final int code;
    private final String desc;

    ResponseCodeEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }
}
